home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 001 / apcp.arc / A-MENU.CMD < prev    next >
Encoding:
Text File  |  1987-01-14  |  10.9 KB  |  411 lines

  1.      goto menu
  2.  
  3. dial:
  4.      clear
  5.      message "│"
  6.      locate 0,2
  7.      message s3
  8.      locate 0,6
  9.      message "│ n/a      │"
  10.      locate 0,19
  11.      message s1
  12.      locate 0,47
  13.      message "│ n/a                         │"
  14.      locate 2,0
  15.      transmit "C DIAL"
  16.      transmit s3
  17.      transmit "/12,"
  18.      transmit "--------!"              ; ****** YOUR PC-PURSUIT ACCOUNT# ******
  19.      waitfor "="
  20.      transmit "--------!"              ; ****** YOUR PC-PURSUIT PASSWORD ******
  21.      rget s9                           ; Eat Echo
  22.      rget s9 80 40                     ; Eat Linefeed
  23.      rget s9 40
  24.      pause 1
  25.      find s9 "CONNECTED"
  26.      if found
  27.           alarm 2
  28.           execute s2
  29.      else
  30.           assign s7 "M"
  31.      endif
  32. return
  33.  
  34. menu:
  35.      clear
  36.      message "╔════════════════════════════════════════════════════════════════════════════╗"
  37.      message "║ A- Atlanta, GA ................. 404  V- Salt Lake City, UT .......... 801 ║"
  38.      message "║ B- Boston, MA .................. 617  W- Seattle, WA ................. 206 ║"
  39.      message "║ C- Chicago, IL ................. 312  X- Tampa, FL ................... 813 ║"
  40.      message "║ D- Cleveland, OH ............... 216  Y- Washington, DC ...... 202 301 703 ║"
  41.      message "║ E- Dallas, TX .................. 214  Z- ............................. ... ║"
  42.      message "║ F- Denver, CO .................. 303  0- ............................. ... ║"
  43.      message "║ G- Detroit, MI ................. 313  1- ............................. ... ║"
  44.      message "║ H- Glendale, CA ............ 818 213  2- ............................. ... ║"
  45.      message "║ I- Houston, TX ................. 713  3- ............................. ... ║"
  46.      message "║ J- Los Angeles, CA ............. 213  4- ............................. ... ║"
  47.      message "║ K- Miami, FL ................... 305  5- ............................. ... ║"
  48.      message "║ L- Milwaukee, WI ............... 414  6- ............................. ... ║"
  49.      message "║ M- Minneapolis, MN ............. 612  7- ............................. ... ║"
  50.      message "║ N- New York, NY ................ 212  8- ............................. ... ║"
  51.      message "║ O- Newark, NJ .................. 201  9- ............................. ... ║"
  52.      message "║ P- Philadelphia, PA ............ 215  @- ............................. ... ║"
  53.      message "║ Q- Phoenix, AZ ................. 602  #- ............................. ... ║"
  54.      message "║ R- Portland, OR ................ 503  $- ............................. ... ║"
  55.      message "║ S- Research Triangle Park, NC .. 919  %- ............................. ... ║"
  56.      message "║ T- San Francisco, CA ........... 415  &- ............................. ... ║"
  57.      message "║ U- San Jose, CA ............ 408 415  *- ............................. ... ║"
  58.      message "╚════════════════════════════════════════════════════════════════════════════╝"
  59.      locate 23,2
  60.      get s0
  61.  
  62. top:
  63.      find s0 "A"
  64.      if found
  65.           assign s1 "Atlanta, GA               "
  66.           assign s2 "A404A.CMD"
  67.           assign s3 "404"
  68.           gosub dial
  69.      else
  70.      endif
  71.      find s0 "B"
  72.      if found
  73.           assign s1 "Boston, MA                "
  74.           assign s2 "A617A.CMD"
  75.           assign s3 "617"
  76.           gosub dial
  77.      else
  78.      endif
  79.      find s0 "C"
  80.      if found
  81.           assign s1 "Chicago, IL               "
  82.           assign s2 "A312A.CMD"
  83.           assign s3 "312"
  84.           gosub dial
  85.      else
  86.      endif
  87.      find s0 "D"
  88.      if found
  89.           assign s1 "Cleveland, OH             "
  90.           assign s2 "A216A.CMD"
  91.           assign s3 "216"
  92.           gosub dial
  93.      else
  94.      endif
  95.      find s0 "E"
  96.      if found
  97.           assign s1 "Dallas, TX                "
  98.           assign s2 "A214A.CMD"
  99.           assign s3 "214"
  100.           gosub dial
  101.      else
  102.      endif
  103.      find s0 "F"
  104.      if found
  105.           assign s1 "Denver, CO                "
  106.           assign s2 "A303A.CMD"
  107.           assign s3 "303"
  108.           gosub dial
  109.      else
  110.      endif
  111.      find s0 "G"
  112.      if found
  113.           assign s1 "Detroit, MI               "
  114.           assign s2 "A313A.CMD"
  115.           assign s3 "313"
  116.           gosub dial
  117.      else
  118.      endif
  119.      find s0 "H"
  120.      if found
  121.           assign s1 "Glendale, CA              "
  122.           assign s2 "A818A.CMD"
  123.           assign s3 "818"
  124.           gosub dial
  125.      else
  126.      endif
  127.      find s0 "I"
  128.      if found
  129.           assign s1 "Houston, TX               "
  130.           assign s2 "A713A.CMD"
  131.           assign s3 "713"
  132.           gosub dial
  133.      else
  134.      endif
  135.      find s0 "J"
  136.      if found
  137.           assign s1 "Los Angeles, CA           "
  138.           assign s2 "A213A.CMD"
  139.           assign s3 "213"
  140.           gosub dial
  141.      else
  142.      endif
  143.      find s0 "K"
  144.      if found
  145.           assign s1 "Miami, FL                 "
  146.           assign s2 "A305A.CMD"
  147.           assign s3 "305"
  148.           gosub dial
  149.      else
  150.      endif
  151.      find s0 "L"
  152.      if found
  153.           assign s1 "Milwaukee, WI             "
  154.           assign s2 "A414A.CMD"
  155.           assign s3 "414"
  156.           gosub dial
  157.      else
  158.      endif
  159.      find s0 "M"
  160.      if found
  161.           assign s1 "Minneapolis, MN            "
  162.           assign s2 "A612A.CMD"
  163.           assign s3 "612"
  164.           gosub dial
  165.      else
  166.      endif
  167.      find s0 "N"
  168.      if found
  169.           assign s1 "New York, NY              "
  170.           assign s2 "A212A.CMD"
  171.           assign s3 "212"
  172.           gosub dial
  173.      else
  174.      endif
  175.      find s0 "O"
  176.      if found
  177.           assign s1 "Newark, NJ                "
  178.           assign s2 "A201A.CMD"
  179.           assign s3 "201"
  180.           gosub dial
  181.      else
  182.      endif
  183.      find s0 "P"
  184.      if found
  185.           assign s1 "Philadelphia, PA          "
  186.           assign s2 "A215A.CMD"
  187.           assign s3 "215"
  188.           gosub dial
  189.      else
  190.      endif
  191.      find s0 "Q"
  192.      if found
  193.           assign s1 "Phoenix, AZ               "
  194.           assign s2 "A602A.CMD"
  195.           assign s3 "602"
  196.           gosub dial
  197.      else
  198.      endif
  199.      find s0 "R"
  200.      if found
  201.           assign s1 "Portland, OR              "
  202.           assign s2 "A503A.CMD"
  203.           assign s3 "503"
  204.           gosub dial
  205.      else
  206.      endif
  207.      find s0 "S"
  208.      if found
  209.           assign s1 "Research Triangle Park, NC"
  210.           assign s2 "A919A.CMD"
  211.           assign s3 "919"
  212.           gosub dial
  213.      else
  214.      endif
  215.      find s0 "T"
  216.      if found
  217.           assign s1 "San Francisco, CA         "
  218.           assign s2 "A415A.CMD"
  219.           assign s3 "415"
  220.           gosub dial
  221.      else
  222.      endif
  223.      find s0 "U"
  224.      if found
  225.           assign s1 "San Jose, CA              "
  226.           assign s2 "A408A.CMD"
  227.           assign s3 "408"
  228.           gosub dial
  229.      else
  230.      endif
  231.      find s0 "V"
  232.      if found
  233.           assign s1 "Salt Lake City, UT        "
  234.           assign s2 "A801A.CMD"
  235.           assign s3 "801"
  236.           gosub dial
  237.      else
  238.      endif
  239.      find s0 "W"
  240.      if found
  241.           assign s1 "Seattle, WA               "
  242.           assign s2 "A206A.CMD"
  243.           assign s3 "206"
  244.           gosub dial
  245.      else
  246.      endif
  247.      find s0 "X"
  248.      if found
  249.           assign s1 "Tampa, FL                 "
  250.           assign s2 "A813A.CMD"
  251.           assign s3 "813"
  252.           gosub dial
  253.      else
  254.      endif
  255.      find s0 "Y"
  256.      if found
  257.           assign s1 "Washington, DC            "
  258.           assign s2 "A202A.CMD"
  259.           assign s3 "202"
  260.           gosub dial
  261.      else
  262.      endif
  263.      goto speedup                      ; Skip Empty Elements
  264.      find s0 "Z"
  265.      if found
  266.           assign s1 "                            "
  267.           assign s2 "         "
  268.           assign s3 "   "
  269.           gosub dial
  270.      else
  271.      endif
  272.      find s0 "0"
  273.      if found
  274.           assign s1 "                            "
  275.           assign s2 "         "
  276.           assign s3 "   "
  277.           gosub dial
  278.      else
  279.      endif
  280.      find s0 "1"
  281.      if found
  282.           assign s1 "                            "
  283.           assign s2 "         "
  284.           assign s3 "   "
  285.           gosub dial
  286.      else
  287.      endif
  288.      find s0 "2"
  289.      if found
  290.           assign s1 "                            "
  291.           assign s2 "         "
  292.           assign s3 "   "
  293.           gosub dial
  294.      else
  295.      endif
  296.      find s0 "3"
  297.      if found
  298.           assign s1 "                            "
  299.           assign s2 "         "
  300.           assign s3 "   "
  301.           gosub dial
  302.      else
  303.      endif
  304.      find s0 "4"
  305.      if found
  306.           assign s1 "                            "
  307.           assign s2 "         "
  308.           assign s3 "   "
  309.           gosub dial
  310.      else
  311.      endif
  312.      find s0 "5"
  313.      if found
  314.           assign s1 "                            "
  315.           assign s2 "         "
  316.           assign s3 "   "
  317.           gosub dial
  318.      else
  319.      endif
  320.      find s0 "6"
  321.      if found
  322.           assign s1 "                            "
  323.           assign s2 "         "
  324.           assign s3 "   "
  325.           gosub dial
  326.      else
  327.      endif
  328.      find s0 "7"
  329.      if found
  330.           assign s1 "                            "
  331.           assign s2 "         "
  332.           assign s3 "   "
  333.           gosub dial
  334.      else
  335.      endif
  336.      find s0 "8"
  337.      if found
  338.           assign s1 "                            "
  339.           assign s2 "         "
  340.           assign s3 "   "
  341.           gosub dial
  342.      else
  343.      endif
  344.      find s0 "9"
  345.      if found
  346.           assign s1 "                            "
  347.           assign s2 "         "
  348.           assign s3 "   "
  349.           gosub dial
  350.      else
  351.      endif
  352.      find s0 "@"
  353.      if found
  354.           assign s1 "                            "
  355.           assign s2 "         "
  356.           assign s3 "   "
  357.           gosub dial
  358.      else
  359.      endif
  360.      find s0 "#"
  361.      if found
  362.           assign s1 "                            "
  363.           assign s2 "         "
  364.           assign s3 "   "
  365.           gosub dial
  366.      else
  367.      endif
  368.      find s0 "$"
  369.      if found
  370.           assign s1 "                            "
  371.           assign s2 "         "
  372.           assign s3 "   "
  373.           gosub dial
  374.      else
  375.      endif
  376.      find s0 "%"
  377.      if found
  378.           assign s1 "                            "
  379.           assign s2 "         "
  380.           assign s3 "   "
  381.           gosub dial
  382.      else
  383.      endif
  384.      find s0 "&"
  385.      if found
  386.           assign s1 "                            "
  387.           assign s2 "         "
  388.           assign s3 "   "
  389.           gosub dial
  390.      else
  391.      endif
  392.      find s0 "*"
  393.      if found
  394.           assign s1 "                            "
  395.           assign s2 "         "
  396.           assign s3 "   "
  397.           gosub dial
  398.      else
  399.      endif
  400.  
  401. speedup:
  402.      find s7 "M"
  403.      if found
  404.           assign s7 " "
  405.           goto top
  406.      else
  407.      endif
  408.      message "NO CITY REQUESTED"
  409.      alarm 2
  410.      exit
  411.